package cz.muni.fi.pv168.ContactManager;

/**
 * Created by IntelliJ IDEA.
 * User: Vlado
 * Date: 4.3.2012
 * Time: 17:13
 * To change this template use File | Settings | File Templates.
 */
public class Contact {
    Long id;
    String type;
    String value;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Contact() {

    }

    @Override
    public boolean equals(Object o)
    {
        if(o == null) return false;
        if(o == this) return true;
        if(!(o instanceof Contact)) return false;
        Contact p = (Contact) o;
        return (p.getId() == getId()) && p.getType().equals(getType()) && p.getValue().equals(getValue());
    }


}
